package day328;

import java.util.Arrays;
import java.util.Calendar;
import java.util.Scanner;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
public class Stringtest1 {
    public static void main(String[] args) {
        SimpleDateFormat sd=new SimpleDateFormat("yyyy/MM/dd");
        Date now=sd.parse("2022/04/24");
        Date old=sd.parse("2012/12/20");
        long time=now.getTime()-old.getTime();
        System.out.println(time);
        long days=time/(1000*60*60*24);
        System.out.println("今天距世界末日过去了"+days+"天。");